﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<PorteringManagement.Model.Cargo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Cargas
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Crear Nueva Carga</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Carga</legend>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.CargoTypeID, "Tipo de Carga") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("CargoTypeID", string.Empty) %>
            <%: Html.ValidationMessageFor(model => model.CargoTypeID) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.CustomerID, "Cliente") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("CustomerID", string.Empty) %>
            <%: Html.ValidationMessageFor(model => model.CustomerID) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Name, "Nombre") %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Name) %>
            <%: Html.ValidationMessageFor(model => model.Name) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Descripion, "Descripción") %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Descripion) %>
            <%: Html.ValidationMessageFor(model => model.Descripion) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Size, "Tamaño") %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Size) %>
            <%: Html.ValidationMessageFor(model => model.Size) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Weight, "Peso") %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Weight) %>
            <%: Html.ValidationMessageFor(model => model.Weight) %>
        </div>

        <p>
            <input type="submit" value="Crear" />
        </p>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Volver a la Lista", "Index") %>
</div>

</asp:Content>
